Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1354] Revert experimental GroovyTempate.compile code to fix template issue #1368

Merged
merged 3 commits into from
Jan 28, 2022

Conversation

Maximillian13
Copy link
Contributor

Pull Request Checklist

Helpful things

Issue Discussion: #1354
Breaking commit: 8e2e363

Fixes

Fixes #1354

Purpose

This pull request:

  • Revert "experimental" (code with a comment discussing not knowing the full impact) GroovyTempate.compile code to fix template files saving to projects root

Background Context

This was discussed in the linked thread. Reverting back to the old behavior seems reasonable as well as we know it was working properly and was changed to get rid of reflection, not to fix a bug.

We may want to add an improvement ticket to look back at this area and re-write the reflection code because reflection is usually a bad idea.

References

#1354
8e2e363

…o fix template files saving to projects root
Copy link
Collaborator

@tazmaniax tazmaniax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is correct to revert this change and I would just add the following comment to avoid this change happening again in the future.

tazmaniax added a commit to tazmaniax/play1 that referenced this pull request Jan 26, 2022
Applies changes made in playframework#1368
to revert unnecessary and incorrect changes to GroovyTemplate introduced
in playframework#1338
@tazmaniax
Copy link
Collaborator

tazmaniax commented Jan 26, 2022

Just because it's taking a while to get this released I've applied this change to my JDK 17 compatible Play1 pull request, which also now replaces Log4j with reload4j.

@xael-fry xael-fry self-requested a review January 28, 2022 13:50
@xael-fry xael-fry merged commit d36f9be into playframework:master Jan 28, 2022
@willhains
Copy link

🎉 Thank you! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The temporary class of the template is output directly under the application dir.
4 participants